package com.czxy.demo02;

/**
 * Created by hp on 2020/1/30.
 */
public class Test09 {
    public static void main(String[] args) {
        String[] arrA ={"a","b","c","d","e"};
        String[] arrB = new String[5];
        for (int i = 0; i <arrA.length ; i++) {
            arrB[i]=arrA[(arrA.length-1)-i];
        }
        System.out.println("arrB中的元素为:");
        for (String s : arrB) {
            System.out.print(s+" ");
        }
    }
}
